<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改休假明细')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-sysHolidayDetail-edit" th:object="${sysHolidayDetail}">
            <input name="holidayUuid" th:field="*{holidayUuid}" type="hidden">
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">序号：</label>
                <div class="col-sm-8">
                    <input name="serialNum" th:field="*{serialNum}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">项目名称：</label>
                <div class="col-sm-8">
                    <input name="projectName" th:field="*{projectName}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">员工名称：</label>
                <div class="col-sm-8">
                    <input name="userName" th:field="*{userName}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">年份：</label>
                <div class="col-sm-8">
                    <input name="year" th:field="*{year}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">年假时长(小时）：</label>
                <div class="col-sm-8">
                    <input name="yearHolTotal" th:field="*{yearHolTotal}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">休假日期：</label>
                <div class="col-sm-8">
                    <input name="holidayDate" th:field="*{holidayDate}" class="form-control" type="text"required>
                </div>
            <div class="form-group">
                <label class="col-sm-3 control-label ">已休年假时长(小时）：</label>
                <div class="col-sm-8">
                    <input name="yearHolDate" th:field="*{yearHolDate}" class="form-control" type="text" >
                </div>
            </div>
            <div class="form-group">
                    <label class="col-sm-3 control-label ">已休事假时长(小时）：</label>
                    <div class="col-sm-8">
                        <input name="casuHolDate" th:field="*{casuHolDate}" class="form-control" type="text" >
                    </div>
            </div>
            <div class="form-group">
                    <label class="col-sm-3 control-label ">已休病假时长(小时）：</label>
                    <div class="col-sm-8">
                        <input name="sickHolDate" th:field="*{sickHolDate}" class="form-control" type="text" >
                    </div>
             </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">备注：</label>
                <div class="col-sm-8">
                    <textarea name="bak" th:field="*{bak}" class="form-control"></textarea>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <script th:inline="javascript">
        var prefix = ctx + "hrm/sysHoliday";
        /*将后台的值传入前台*/
        var sysHolidayDetail = [[${sysHolidayDetail}]];
        $("#form-sysHolidayDetail-edit").validate({
            focusCleanup: true
        });
        function submitHandler() {
            if ($.validate.form()) {
                edit();
            }
        }
        $("#form-sysHolidayDetail-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-sysHolidayDetail-edit').serialize());
            }
        }
    </script>
</body>
</html>